package com.situ.day1;

import org.junit.Test;

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("HelloWorld");
        // =是赋值
        // 变量：variable var
        int num1 = 12;
        num1 = 456;
        // 常量 final
        final int num2 = 34;
        //Cannot assign a value to final variable 'num2'
        //num2 = 56;

        //byte num3 = 128;
        byte num4 = 127;
        byte num5 = -128;

        double d1 = 3.14;

        char ch1 = 'A';
        char ch2 = 'a';
        char ch3 = '中';
        char ch4 = ']';
        char ch5 = ',';

        String str = "hello";

        boolean b1 = true;
        boolean b2 = false;

        //test1();
    }

    //junit: java unit
    @Test
    public void test1() {//方法体
        //soutm
        System.out.println("HelloWorld.test1");
    }

    @Test
    public void test2() {
        System.out.println("HelloWorld.test2");
    }
}
